package com.sfd.security.api;

import com.sfd.core.entity.User;
import com.sfd.core.vo.LoginUser;

import java.util.Collection;
import java.util.Map;
import java.util.Set;

/**
 * 基础 api
 *
 * @author haden
 * @date 2022/8/13 20:21
 **/
public interface CommonApi {

    User queryUserByName(String username);

    LoginUser getLoginUserByName(String name);

    Map<String, Collection<String>> getRolePermissionMap();

    Set<String> queryUserRoles(String username);

    Set<String> queryUserAuths(String username);
}
